<div class="content_box">
	<header>
		<div class="label">
			<img src="<?= base_url() ?>images/icons/information.png" alt=""><div>New User</div>		
		</div>
		<div class="actions">
			<a href="javascript: create_user()" class="btn" title="save"><span class="icon icon-disk"></span>Save</a>
			<a href="#" class="nyroModalClose nyroModalCloseButton nmReposition btn" title="close"><span class="icon icon-cancel"></span>Cancel</a>
		</div>
	</header>
	<section>
		<form id="new_user_form">
			<table>
				<tr>
					<td>
						Employee ID:
					</td>
					<td>
						<input name="employee_id" type="text" />
					</td>
				</tr>			
				<tr>
					<td>
						Username:
					</td>
					<td>
						<input name="username" type="text" />
					</td>
				</tr>
				<tr>
					<td>
						Password:
					</td>
					<td>
						<input name="password" type="password" />
					</td>
				</tr>
				<tr>
					<td>
						Select Contact: 
					</td>
					<td>
						<select id="person_list" name="person_list" onchange="user_person_changed()">
							<option value="0">-- None --</option>
							<? foreach($persons as $person): ?>
								<option value="<?= $person->id ?>"><?= $person->last_name . ", " . $person->first_name ?></option>
							<? endforeach; ?>
						</select>
					</td>					
				</tr>
				<tr>
					<td>
						First Name:
					</td>
					<td>
						<input id="first_name" name="first_name" type="text" />
					</td>
				</tr>
				<tr>
					<td>
						Last Name:
					</td>
					<td>
						<input id="last_name" name="last_name" type="text" />
					</td>
				</tr>						
				<tr>
					<td>
						Department
					</td>
					<td>
						<select id="department_list" name="department_list">
							<option value="0">-- None --</option>
							<? foreach($departments as $department): ?>
								<option value="<?= $department->id ?>"><?= $department->name ?></option>
							<? endforeach; ?>							
						</select>
					</td>					
				</tr>				
			</table>
		</form>
	</section>
</div>